package com.chuantou.yuba.db.columns;

import java.util.HashMap;
import java.util.Map;

import android.net.Uri;

import com.chuantou.yuba.provider.DatabaseProvider;

public class MessageColumns extends DataBaseColumns {
	public static final String TABLE_NAME = "MESSAGE";
	public static final Uri CONTENT_URI = Uri.parse("content://" + DatabaseProvider.AUTHORITY + "/" + TABLE_NAME);
	private static final HashMap<String, String> TABLE_CREATOR = new HashMap<String, String>();
	public static final String COLUMN_MESSAGE = "MESSAGE";
	public static final String COLUMN_TIME = "TIME";
	public static final String COLUMN_ACTION = "ACTION";

	@Override
	public String getTableName() {
		return TABLE_NAME;
	}

	@Override
	protected Map<String, String> getTableMap() {
		TABLE_CREATOR.put(_ID, "text primary key");
		TABLE_CREATOR.put(COLUMN_MESSAGE, "text");
		TABLE_CREATOR.put(COLUMN_ACTION, "text");
		TABLE_CREATOR.put(COLUMN_TIME, "Long");
		return TABLE_CREATOR;
	}

}
